------------------------------------------------------------------------------------------------------------------------------------
      name:  plog_930
       log:  /accounts/projects/jr_ra/GRscarring/erratum/programs/analysis/ivrunatc.log
  log type:  text
 opened on:  27 Nov 2024, 18:08:23

. **********************************************************************
. * Run IV versions of the scarring models, using double-weighted
. * measures of the entry unemployment weight a la Heisz-von Wachter
. *
. *Edits
. ** NR 03/17/2019: Comment out line that sets ur0 = 0 if  cohort<1954
. * 01/20/2020: NG:  Updated to match with the new cohort and birthcohort variables 
. * 5/2/20, JR: Updated and repaired
. *********************************************************************
. 
. clear

. cap project, doinfo

. if _rc==0 {
.         local pdir "`r(pdir)'"                                                      // the project's main dir.
.         local dofile "`r(dofile)'"                                                  // do-file's stub name
.         local sig {bind:{hi:[`dofile'.dta. RP : `dofile'.do, `c(current_date)']}}   // a signature in notes
.         local doasproject=1
. }

. else {
.         local pdir "~/GRscarring"
.         local dofile "ivrunatc"
.         local doasproject=0
. }

. 
. set more off

. eststo clear

. estimates clear

. local rootdir "`pdir'"

. local thisdir "`pdir'"

. 
. local prepdata "`pdir'/scratch"

. local rawdata "`pdir'/rawdata"

. local output "`pdir'/results"

. 
. /*
> local depvarscps "empl unem labfor married hourslw hourslw_pos uhours livewithprnt chld_pr educ_occup lives_spouse_oth" 
> local depvarsmar "earn_r_pos earn_r_pos_tc log_earn_r_pos log_earn_r_pos_tc inc_r_pos inc_r_pos_tc log_inc_r_pos log_inc_r_pos_tc 
> wkswork wkswork_pos"
> local depvarsorg "paidhre rw rw_l rw_nber uhourse wage_occup log_wk_ern"
> */
. local depvarscps "empl"

. local depvarsmar "log_pearnval_tc_r"

. local depvarsorg "rw_l"

. 
. if `doasproject'==1 {
.         project, uses("`prepdata'/combinecollapse_yca2s.dta")
project GRscar_erratum > do-file uses: "/scratch/public/jr_ra/GRscarring2024/erratum/scratch/combinecollapse_yca2s.dta" filesig(9104
> 81610:162185009)
.         project, uses("`prepdata'/double_weight.dta")
project GRscar_erratum > do-file uses: "/scratch/public/jr_ra/GRscarring2024/erratum/scratch/double_weight.dta" filesig(963227312:16
> 89179)
. }

. 
. use "`prepdata'/double_weight", replace

. rename cohort entrycohort

. tempfile weight

. save `weight', replace
(file /tmp/St2868349.000004 not found)
file /tmp/St2868349.000004 saved as .dta format

. 
. // Start of data manipulation
. 
. use `prepdata'/combinecollapse_yca2s, clear

. cap drop _*

. keep if age<=40 
(170,685 observations deleted)

. keep if (educ2==1 & age>=22) 
(62,018 observations deleted)

. keep if marchwgt<. | orgwgt<. | bigcpswgt<.
(0 observations deleted)

. // Drop 2019 data, which is not yet complete
. //  drop if year==2019
. // Drop the cohorts just entering the sample in 2018, for whom UR0 is missing.
. // edit, 9/2/19: Dont need this now that we have UR for 2018
. isid birthcohort year fipsst educ2

. gen ur0=ur0_22 if educ2==1
(2,799 missing values generated)

. replace ur0=ur0_18 if educ2==0
(0 real changes made)

. gen ur0_nat=ur0_nat_22 if educ2==1
(2,799 missing values generated)

. replace ur0_nat=ur0_nat_18 if educ2==0
(0 real changes made)

. 
. // Edit 12/26/19:  Update to match the new cohort definition
. // gen ur0=ur0_22 
. // gen ur0_nat=ur0_nat_22
. 
. *replace ur0_22=. if cohort<1954
. *replace ur0   =. if cohort<1954
. 
. // Make de-meaned state unemployment rates for the last period.
. gen dur    = ur_st-ur_nat

. gen dur0=ur0-ur0_nat_22 if educ2==1
(2,799 missing values generated)

. replace dur0=ur0-ur0_nat_18 if educ2==0
(0 real changes made)

. // Edit 12/26/19:  Update to match the new cohort definition
. *gen dur0   = ur0-ur0_nat_22
.   
.   gen estsamp=(birthcohort<=1978 & ur0<.) if educ2==1

.   replace estsamp=(birthcohort<=1982 & ur0<.) if educ2==0
(0 real changes made)

.   assert estsamp==(birthcohort>=1948 & birthcohort<=1978) if educ2==1 

.   assert estsamp==0 if educ2==1 & (birthcohort<1948 | birthcohort>1978)

.   assert estsamp==(birthcohort>=1952 & birthcohort<=1982) if educ2==0
(null assertion)

.   assert estsamp==0 if educ2==0 & (birthcohort<1952 | birthcohort>1982)
(null assertion)

.   gen estsampb=(ur0<.)

.   assert estsampb==(birthcohort>=1948 & birthcohort<=1997) if educ2==1 

.   assert estsampb==(birthcohort>=1952 & birthcohort<=2001) if educ2==0 
(null assertion)

.   gen ageb=age-40

.   gen exper=age-18-4*educ2

.   recode exper (0/1=0) (2/3=2) (4/5=4) (6/7=6) (8/9=8) (10/max=10), gen(expgp)
(27,840 differences between exper and expgp)

.   gen expgp0=(expgp==0)

.   gen expgp2=(expgp==2)

.   gen expgp4=(expgp==4)

.   gen expgp6=(expgp==6)

.   gen expgp8=(expgp==8)

.   gen expgp10=(expgp==10)

.   gen byte diffsamp=inlist(birthcohort, 1983, 1984, 1988, 1989) * (age<=27) if educ2==1

.   replace diffsamp=inlist(birthcohort, 1987, 1988, 1992, 1993)*(age<=27) if educ2==0
(0 real changes made)

.   gen byte postGR=inlist(birthcohort, 1988, 1989) if diffsamp==1 & educ2==1
(39,468 missing values generated)

.   replace postGR=inlist(birthcohort, 1992, 1993) if diffsamp==1 & educ2==0
(0 real changes made)

.   // create inverse mills ratios
.   gen imr_yc=normalden(invnormal(edfr_yc))/edfr_yc if educ2==1
(963 missing values generated)

.   replace imr_yc=normalden(invnormal(1-edfr_yc))/(1-edfr_yc) if educ2==0
(0 real changes made)

.   
.   gen imr_ycs=normalden(invnormal(edfr_ycs))/edfr_ycs if educ2==1
(963 missing values generated)

.   replace imr_ycs=normalden(invnormal(1-edfr_ycs))/(1-edfr_ycs) if educ2==0
(0 real changes made)

.   gen edfr2_ycs=edfr_ycs^2
(963 missing values generated)

. 
.  
.  // NG 01/20/2020: Edited, new name for the cohort variable (entrycohort) and new variable for the birth year (birthcohort)
. * For clarity we define birthcohort and entrycohort and we redefine the cohort definition
. label var birthcohort "Year of Birth"

. gen entrycohort=. 
(40,692 missing values generated)

. replace entrycohort=birthcohort+22 if educ2==1
(40,692 real changes made)

. replace entrycohort=birthcohort+18 if educ2==0
(0 real changes made)

. label var entrycohort "Year of entry on the labor market, depending on level of education"

. 
. // Merge on double_weight UR22 
. merge 1:1 entrycohort age fipsst educ2 using `weight', keep(1 3) 
(variable educ2 was byte, now double to accommodate using data's values)

    Result                      Number of obs
    -----------------------------------------
    Not matched                         2,799
        from master                     2,799  (_merge==1)
        from using                          0  (_merge==2)

    Matched                            37,893  (_merge==3)
    -----------------------------------------

. 
. // NG, Edit 12/26/12: Update to match new cohort definition 
. * drop if cohort<1948
. drop if entrycohort<1970
(2,799 observations deleted)

. *drop if entrycohort<1970 & educ2==1 | entrycohort<1970 & educ2==0
. assert _merge==3

. drop _merge

. gen dur_dw = UR22_dw-ur0_nat_22

. 
. /* 
> //OLS, model D, estsamp
>     reg empl ib10.exper ib2007.year ib1991o2000.entrycohort ib6.fipsst imr_yc  ///
>         c.ur0#c.expgp0 c.ur0#c.expgp2 c.ur0#c.expgp4 c.ur0#c.expgp6 c.ur0#c.expgp8 c.dur0 ///
>         [aw=bigcpswgt] if estsamp==1, cluster(fipsst) 
>         eststo sub
>     *fvreg `v' ib10.exper ib2007.year ib1991o2000.entrycohort ib6.fipsst imr_yc  ///
>     *     c.ur0#c.expgp0 c.ur0#c.expgp2 c.ur0#c.expgp4 c.ur0#c.expgp6 c.ur0#c.expgp8 c.dur0 ///
>     *     [aw=`wgt'] if estsamp==1 & educ2==`e', cluster(fipsst) ///
>     *     model("mD`e'a") outfile(`mD`e'a_`v'') preserve
>  //IV, model D, estsamp
>     ivregress 2sls empl ib10.exper ib2007.year ib1991o2000.entrycohort ib6.fipsst imr_yc  c.dur0 ///
>         (c.ur0#c.expgp0     c.ur0#c.expgp2     c.ur0#c.expgp4     c.ur0#c.expgp6     c.ur0#c.expgp8 = ///
>          c.UR22_dw#c.expgp0 c.UR22_dw#c.expgp2 c.UR22_dw#c.expgp4 c.UR22_dw#c.expgp6 c.UR22_dw#c.expgp8) ///
>         [aw=bigcpswgt] if estsamp==1, cluster(fipsst) 
>         eststo sub_2sls
> */
. 
.  //OLS, model D, estsampb
.     reg empl ib10.exper ib2007.year ib1984o2000.entrycohort ib6.fipsst imr_ycs  ///
>         c.ur0#c.expgp0 c.ur0#c.expgp2 c.ur0#c.expgp4 c.ur0#c.expgp6 c.ur0#c.expgp8 c.dur0 ///
>         [aw=bigcpswgt] if estsampb==1, cluster(fipsst) 
(sum of wgt is 10,042,217,198.87)

Linear regression                               Number of obs     =     37,434
                                                F(49, 50)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.3187
                                                Root MSE          =     .04979

                                  (Std. err. adjusted for 51 clusters in fipsst)
--------------------------------------------------------------------------------
               |               Robust
          empl | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
---------------+----------------------------------------------------------------
         exper |
            0  |  -.0685867   .0089773    -7.64   0.000     -.086618   -.0505553
            1  |  -.0110224   .0094225    -1.17   0.248     -.029948    .0079032
            2  |   .0017608   .0060536     0.29   0.772    -.0103983    .0139198
            3  |   .0159907   .0061564     2.60   0.012     .0036252    .0283562
            4  |    .014153   .0048624     2.91   0.005     .0043865    .0239195
            5  |   .0202242   .0054747     3.69   0.001     .0092279    .0312205
            6  |   .0036509   .0048673     0.75   0.457    -.0061254    .0134272
            7  |   .0045985   .0038634     1.19   0.240    -.0031614    .0123584
            8  |   .0097881   .0041114     2.38   0.021     .0015301    .0180461
            9  |   .0066306   .0043956     1.51   0.138    -.0021983    .0154595
           11  |   .0004183   .0016667     0.25   0.803    -.0029293     .003766
           12  |  -.0007661   .0019644    -0.39   0.698    -.0047116    .0031794
           13  |  -.0024415    .001859    -1.31   0.195    -.0061753    .0012924
           14  |  -.0022122   .0021654    -1.02   0.312    -.0065616    .0021371
           15  |    -.00101   .0026156    -0.39   0.701    -.0062634    .0042435
           16  |   .0035238    .002525     1.40   0.169    -.0015477    .0085954
           17  |   .0048163   .0020307     2.37   0.022     .0007374    .0088952
           18  |   .0079975   .0029294     2.73   0.009     .0021135    .0138814
               |
          year |
         1979  |   .0020109   .0087678     0.23   0.820    -.0155997    .0196214
         1980  |  -.0020248   .0075127    -0.27   0.789    -.0171146    .0130649
         1981  |  -.0007507   .0072464    -0.10   0.918    -.0153055    .0138041
         1982  |  -.0049117   .0071295    -0.69   0.494    -.0192317    .0094083
         1983  |   -.001518   .0067555    -0.22   0.823    -.0150869    .0120509
         1984  |   .0114959   .0059865     1.92   0.061    -.0005284    .0235202
         1985  |   .0190744   .0061215     3.12   0.003     .0067789    .0313699
         1986  |   .0213052   .0057893     3.68   0.001      .009677    .0329334
         1987  |   .0241485   .0054165     4.46   0.000     .0132691    .0350278
         1988  |   .0298864   .0054219     5.51   0.000     .0189962    .0407765
         1989  |   .0276592   .0050021     5.53   0.000     .0176122    .0377062
         1990  |   .0250187   .0040737     6.14   0.000     .0168364    .0332009
         1991  |   .0142762   .0042955     3.32   0.002     .0056484     .022904
         1992  |    .015249   .0033962     4.49   0.000     .0084276    .0220705
         1993  |   .0195777   .0037001     5.29   0.000     .0121459    .0270095
         1994  |    .022684   .0034798     6.52   0.000     .0156946    .0296733
         1995  |   .0195548   .0035205     5.55   0.000     .0124837    .0266259
         1996  |   .0188543   .0028084     6.71   0.000     .0132134    .0244951
         1997  |   .0210544    .002982     7.06   0.000     .0150649    .0270439
         1998  |   .0162029   .0029286     5.53   0.000     .0103206    .0220852
         1999  |   .0141054   .0031052     4.54   0.000     .0078684    .0203425
         2000  |   .0113584   .0031082     3.65   0.001     .0051155    .0176014
         2001  |  -.0011265   .0033279    -0.34   0.736    -.0078107    .0055577
         2002  |  -.0084773   .0027937    -3.03   0.004    -.0140885   -.0028661
         2003  |  -.0175037   .0023149    -7.56   0.000    -.0221534   -.0128541
         2004  |  -.0090219   .0023384    -3.86   0.000    -.0137187   -.0043251
         2005  |   -.005607   .0019449    -2.88   0.006    -.0095134   -.0017006
         2006  |   .0006149   .0027069     0.23   0.821    -.0048221     .006052
         2008  |  -.0015319   .0029104    -0.53   0.601    -.0073776    .0043138
         2009  |   -.018934   .0038009    -4.98   0.000    -.0265684   -.0112996
         2010  |  -.0218732   .0042642    -5.13   0.000     -.030438   -.0133084
         2011  |  -.0204505   .0046542    -4.39   0.000    -.0297987   -.0111023
         2012  |  -.0133812    .004792    -2.79   0.007    -.0230062   -.0037562
         2013  |  -.0118575   .0042366    -2.80   0.007     -.020367   -.0033479
         2014  |  -.0070957   .0052839    -1.34   0.185    -.0177087    .0035172
         2015  |  -.0051039   .0054757    -0.93   0.356    -.0161022    .0058945
         2016  |  -.0000541   .0057525    -0.01   0.993    -.0116083       .0115
         2017  |   .0070563    .005953     1.19   0.241    -.0049007    .0190132
         2018  |   .0127182   .0068442     1.86   0.069    -.0010287    .0264651
         2019  |   .0182269   .0064954     2.81   0.007     .0051804    .0312733
               |
   entrycohort |
         1970  |    .002361   .0064111     0.37   0.714     -.010516     .015238
         1971  |  -.0050813   .0051504    -0.99   0.329    -.0154262    .0052637
         1972  |  -.0026687   .0047423    -0.56   0.576    -.0121939    .0068566
         1973  |  -.0010025   .0039179    -0.26   0.799    -.0088718    .0068668
         1974  |  -.0054022   .0043656    -1.24   0.222    -.0141707    .0033663
         1975  |  -.0069537   .0042825    -1.62   0.111    -.0155553    .0016479
         1976  |  -.0080246   .0046287    -1.73   0.089    -.0173215    .0012723
         1977  |  -.0059989   .0035711    -1.68   0.099    -.0131717    .0011738
         1978  |  -.0033681   .0040498    -0.83   0.410    -.0115024    .0047661
         1979  |  -.0019846   .0041002    -0.48   0.630    -.0102202     .006251
         1980  |  -.0045685    .002669    -1.71   0.093    -.0099293    .0007923
         1981  |  -.0026847   .0029854    -0.90   0.373     -.008681    .0033116
         1982  |  -.0035971    .002817    -1.28   0.208    -.0092552     .002061
         1983  |  -.0002274   .0027571    -0.08   0.935    -.0057652    .0053104
         1985  |  -.0027975   .0023603    -1.19   0.242    -.0075384    .0019434
         1986  |  -.0038133   .0029497    -1.29   0.202    -.0097379    .0021113
         1987  |   .0000424   .0034567     0.01   0.990    -.0069006    .0069854
         1988  |   -.001169   .0026607    -0.44   0.662    -.0065132    .0041753
         1989  |  -.0011671   .0036332    -0.32   0.749    -.0084647    .0061304
         1990  |  -.0035669   .0030663    -1.16   0.250    -.0097258    .0025919
         1991  |  -.0034377   .0028875    -1.19   0.239    -.0092375    .0023621
         1992  |  -.0009108   .0035266    -0.26   0.797    -.0079941    .0061725
         1993  |   .0018605   .0025958     0.72   0.477    -.0033532    .0070743
         1994  |  -.0018949   .0026641    -0.71   0.480     -.007246    .0034562
         1995  |   .0008323   .0025117     0.33   0.742    -.0042126    .0058772
         1996  |   .0003351   .0024563     0.14   0.892    -.0045984    .0052686
         1997  |   .0009327   .0027314     0.34   0.734    -.0045535     .006419
         1998  |  -.0002313   .0029517    -0.08   0.938    -.0061599    .0056973
         1999  |   .0021866   .0037053     0.59   0.558    -.0052558     .009629
         2000  |          0  (omitted)
         2001  |  -.0027699   .0026128    -1.06   0.294    -.0080179    .0024781
         2002  |  -.0025404   .0032925    -0.77   0.444    -.0091535    .0040727
         2003  |   -.000163   .0033127    -0.05   0.961    -.0068168    .0064908
         2004  |  -.0029268   .0044507    -0.66   0.514    -.0118663    .0060126
         2005  |  -.0091369   .0052853    -1.73   0.090    -.0197528    .0014791
         2006  |  -.0083639   .0031107    -2.69   0.010    -.0146119   -.0021159
         2007  |   -.010515   .0057348    -1.83   0.073    -.0220337    .0010037
         2008  |  -.0126726   .0043237    -2.93   0.005    -.0213569   -.0039883
         2009  |  -.0115813   .0067494    -1.72   0.092    -.0251379    .0019752
         2010  |  -.0150542   .0072059    -2.09   0.042    -.0295277   -.0005806
         2011  |  -.0147363   .0077377    -1.90   0.063     -.030278    .0008054
         2012  |  -.0183138   .0091732    -2.00   0.051    -.0367387    .0001111
         2013  |  -.0209774   .0083983    -2.50   0.016    -.0378459   -.0041089
         2014  |  -.0282922   .0085092    -3.32   0.002    -.0453834    -.011201
         2015  |  -.0332579   .0116972    -2.84   0.006    -.0567524   -.0097635
         2016  |  -.0355217   .0109148    -3.25   0.002    -.0574447   -.0135987
         2017  |  -.0485031   .0104733    -4.63   0.000    -.0695393   -.0274669
         2018  |  -.0593029   .0105516    -5.62   0.000    -.0804965   -.0381093
         2019  |  -.0574455   .0175588    -3.27   0.002    -.0927134   -.0221776
               |
        fipsst |
           AL  |   .0252386   .0008644    29.20   0.000     .0235023    .0269748
           AK  |    .012229   .0007192    17.00   0.000     .0107844    .0136736
           AZ  |   .0104231   .0006877    15.16   0.000     .0090419    .0118044
           AR  |   .0375058   .0010962    34.22   0.000     .0353041    .0397075
           CO  |   .0338426   .0016677    20.29   0.000     .0304929    .0371924
           CT  |   .0156074   .0020709     7.54   0.000     .0114479     .019767
           DE  |   .0343378   .0011926    28.79   0.000     .0319424    .0367332
           DC  |   .0412247   .0028731    14.35   0.000     .0354539    .0469954
           FL  |   .0104678   .0006471    16.18   0.000      .009168    .0117676
           GA  |   .0175899   .0007713    22.81   0.000     .0160407     .019139
           HI  |    .021683   .0013591    15.95   0.000     .0189532    .0244129
           ID  |   .0192315   .0009871    19.48   0.000     .0172488    .0212141
           IL  |   .0188257   .0007181    26.22   0.000     .0173835     .020268
           IN  |   .0352665   .0007269    48.52   0.000     .0338065    .0367265
           IA  |   .0522925   .0015476    33.79   0.000     .0491841    .0554009
           KS  |   .0327218   .0017499    18.70   0.000      .029207    .0362366
           KY  |   .0388079   .0006651    58.35   0.000     .0374719    .0401439
           LA  |   .0231713   .0007715    30.04   0.000     .0216218    .0247209
           ME  |   .0486262   .0007356    66.10   0.000     .0471487    .0501038
           MD  |    .031108   .0017992    17.29   0.000     .0274942    .0347218
           MA  |   .0167721   .0023252     7.21   0.000     .0121018    .0214425
           MI  |   .0178376   .0006002    29.72   0.000     .0166321    .0190431
           MN  |   .0557339   .0018359    30.36   0.000     .0520464    .0594214
           MS  |   .0296628   .0010955    27.08   0.000     .0274624    .0318632
           MO  |   .0406028   .0007459    54.43   0.000     .0391046     .042101
           MT  |   .0429676   .0008083    53.16   0.000     .0413442    .0445911
           NE  |   .0525127   .0022155    23.70   0.000     .0480628    .0569626
           NV  |   .0254306    .001357    18.74   0.000     .0227051    .0281562
           NH  |   .0328196   .0021162    15.51   0.000     .0285691    .0370701
           NJ  |  -.0025256   .0015161    -1.67   0.102    -.0055708    .0005196
           NM  |   .0050747   .0007372     6.88   0.000      .003594    .0065553
           NY  |  -.0060678    .001094    -5.55   0.000    -.0082651   -.0038705
           NC  |   .0234174    .000837    27.98   0.000     .0217361    .0250987
           ND  |   .0584524   .0020334    28.75   0.000     .0543682    .0625366
           OH  |   .0338236   .0002705   125.03   0.000     .0332803     .034367
           OK  |   .0187941   .0010979    17.12   0.000     .0165889    .0209993
           OR  |   .0114176   .0001374    83.09   0.000     .0111416    .0116936
           PA  |   .0224758   .0006225    36.11   0.000     .0212255     .023726
           RI  |   .0277547   .0009096    30.51   0.000     .0259277    .0295817
           SC  |   .0278281   .0005802    47.96   0.000     .0266626    .0289935
           SD  |   .0661828   .0019564    33.83   0.000     .0622531    .0701124
           TN  |   .0251484   .0005806    43.31   0.000     .0239821    .0263146
           TX  |   .0156279   .0006514    23.99   0.000     .0143195    .0169362
           UT  |  -.0090115   .0012811    -7.03   0.000    -.0115845   -.0064384
           VT  |   .0349625    .001889    18.51   0.000     .0311684    .0387567
           VA  |   .0239576   .0019281    12.43   0.000     .0200848    .0278304
           WA  |   .0148025   .0002672    55.41   0.000     .0142659    .0153391
           WV  |   .0327299   .0016727    19.57   0.000     .0293702    .0360896
           WI  |    .054177   .0009898    54.73   0.000     .0521889    .0561651
           WY  |   .0340778   .0012744    26.74   0.000     .0315181    .0366374
               |
       imr_ycs |  -.0154165   .0063101    -2.44   0.018    -.0280909   -.0027422
               |
c.ur0#c.expgp0 |  -.0068793    .001416    -4.86   0.000    -.0097235   -.0040352
               |
c.ur0#c.expgp2 |  -.0047073   .0008676    -5.43   0.000    -.0064499   -.0029647
               |
c.ur0#c.expgp4 |  -.0019152   .0007724    -2.48   0.017    -.0034667   -.0003638
               |
c.ur0#c.expgp6 |   .0006452   .0006465     1.00   0.323    -.0006534    .0019438
               |
c.ur0#c.expgp8 |  -.0006241   .0006314    -0.99   0.328    -.0018922     .000644
               |
          dur0 |  -.0003098   .0006933    -0.45   0.657    -.0017022    .0010827
         _cons |   .8582652   .0081867   104.84   0.000     .8418217    .8747088
--------------------------------------------------------------------------------

.         eststo mD_ols

.     forvalues c = 0(2)8 {
  2.       local bD_ols_`c'=_b[c.ur0#c.expgp`c']
  3.       local seD_ols_`c'=_se[c.ur0#c.expgp`c']
  4.     }

.     matrix results_Dols=(0, `bD_ols_0', `seD_ols_0' \ ///
>                          2, `bD_ols_2', `seD_ols_2' \ ///
>                          4, `bD_ols_4', `seD_ols_4' \ ///
>                          6, `bD_ols_6', `seD_ols_6' \ ///
>                          8, `bD_ols_8', `seD_ols_8' \ 10, 0, 0)

.     matrix colnames results_Dols=period beta_Dols se_Dols

. 
.  //IV, model D, estsampb
.     ivregress 2sls empl ib10.exper ib2007.year ib1984o2000.entrycohort ib6.fipsst imr_ycs  c.dur0 ///
>         (c.ur0#c.expgp0     c.ur0#c.expgp2     c.ur0#c.expgp4     c.ur0#c.expgp6     c.ur0#c.expgp8 = ///
>          c.UR22_dw#c.expgp0 c.UR22_dw#c.expgp2 c.UR22_dw#c.expgp4 c.UR22_dw#c.expgp6 c.UR22_dw#c.expgp8) ///
>         [aw=bigcpswgt] if estsampb==1, cluster(fipsst) 
(sum of wgt is   1.0042e+10)
note: 1978.year identifies no observations in the sample.

Instrumental variables 2SLS regression            Number of obs   =     37,434
                                                  Wald chi2(163)  =  130184.17
                                                  Prob > chi2     =     0.0000
                                                  R-squared       =     0.3184
                                                  Root MSE        =     .04969

                                  (Std. err. adjusted for 51 clusters in fipsst)
--------------------------------------------------------------------------------
               |               Robust
          empl | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
---------------+----------------------------------------------------------------
c.ur0#c.expgp0 |  -.0050697   .0013406    -3.78   0.000    -.0076972   -.0024421
               |
c.ur0#c.expgp2 |  -.0032777   .0007701    -4.26   0.000    -.0047871   -.0017683
               |
c.ur0#c.expgp4 |  -.0012366   .0007156    -1.73   0.084    -.0026392    .0001659
               |
c.ur0#c.expgp6 |   .0008617   .0006431     1.34   0.180    -.0003986    .0021221
               |
c.ur0#c.expgp8 |  -.0006442   .0007113    -0.91   0.365    -.0020383    .0007499
               |
         exper |
            0  |  -.0789261   .0088885    -8.88   0.000    -.0963472   -.0615049
            1  |  -.0214742   .0092035    -2.33   0.020    -.0395126   -.0034357
            2  |  -.0064255    .005992    -1.07   0.284    -.0181695    .0053185
            3  |   .0076728   .0060662     1.26   0.206    -.0042167    .0195623
            4  |   .0105294   .0053222     1.98   0.048     .0000981    .0209607
            5  |   .0165364   .0056417     2.93   0.003     .0054788     .027594
            6  |   .0028782   .0050974     0.56   0.572    -.0071124    .0128689
            7  |   .0037002   .0039245     0.94   0.346    -.0039917     .011392
            8  |   .0102578   .0044404     2.31   0.021     .0015547    .0189608
            9  |   .0069292   .0049829     1.39   0.164     -.002837    .0166955
           11  |   .0002564   .0016335     0.16   0.875    -.0029452     .003458
           12  |  -.0010132   .0019148    -0.53   0.597    -.0047662    .0027398
           13  |  -.0027587   .0018493    -1.49   0.136    -.0063833    .0008658
           14  |  -.0026041   .0021525    -1.21   0.226    -.0068229    .0016146
           15  |    -.00149    .002588    -0.58   0.565    -.0065624    .0035825
           16  |   .0029559   .0024989     1.18   0.237    -.0019418    .0078537
           17  |   .0041566   .0020424     2.04   0.042     .0001536    .0081596
           18  |   .0072517   .0029083     2.49   0.013     .0015514    .0129519
               |
          year |
         1978  |          0  (empty)
         1979  |  -.0013496   .0086115    -0.16   0.875    -.0182279    .0155286
         1980  |  -.0052443   .0074891    -0.70   0.484    -.0199228    .0094341
         1981  |  -.0038387   .0072491    -0.53   0.596    -.0180468    .0103693
         1982  |  -.0080318   .0072906    -1.10   0.271    -.0223213    .0062576
         1983  |  -.0046913   .0069112    -0.68   0.497    -.0182369    .0088543
         1984  |   .0084345   .0061303     1.38   0.169    -.0035806    .0204496
         1985  |   .0161955   .0061295     2.64   0.008     .0041819     .028209
         1986  |   .0187073   .0057985     3.23   0.001     .0073424    .0300722
         1987  |   .0218358   .0054553     4.00   0.000     .0111437    .0325279
         1988  |   .0278507   .0054342     5.13   0.000     .0171998    .0385016
         1989  |   .0259438   .0050633     5.12   0.000       .01602    .0358676
         1990  |    .023589   .0040842     5.78   0.000     .0155841    .0315939
         1991  |   .0130215   .0043111     3.02   0.003     .0045718    .0214712
         1992  |   .0140633   .0034761     4.05   0.000     .0072504    .0208763
         1993  |   .0184404   .0037747     4.89   0.000     .0110421    .0258386
         1994  |   .0216174   .0035498     6.09   0.000       .01466    .0285748
         1995  |   .0186118   .0035599     5.23   0.000     .0116345    .0255891
         1996  |   .0180659   .0029183     6.19   0.000     .0123461    .0237857
         1997  |   .0204462   .0030852     6.63   0.000     .0143993     .026493
         1998  |   .0158016   .0029529     5.35   0.000      .010014    .0215893
         1999  |   .0138776   .0031067     4.47   0.000     .0077886    .0199665
         2000  |    .011299   .0031073     3.64   0.000     .0052089    .0173892
         2001  |  -.0011006   .0033071    -0.33   0.739    -.0075824    .0053812
         2002  |  -.0084743   .0027838    -3.04   0.002    -.0139304   -.0030181
         2003  |  -.0175518   .0022843    -7.68   0.000     -.022029   -.0130746
         2004  |   -.009115    .002327    -3.92   0.000    -.0136758   -.0045541
         2005  |  -.0057219   .0019297    -2.97   0.003     -.009504   -.0019399
         2006  |   .0005414   .0026644     0.20   0.839    -.0046807    .0057636
         2008  |  -.0014951   .0028778    -0.52   0.603    -.0071355    .0041453
         2009  |  -.0189765    .003754    -5.05   0.000    -.0263343   -.0116187
         2010  |  -.0221053   .0041984    -5.27   0.000    -.0303341   -.0138766
         2011  |  -.0208537   .0045876    -4.55   0.000    -.0298453   -.0118621
         2012  |  -.0138922   .0047477    -2.93   0.003    -.0231975   -.0045869
         2013  |   -.012285   .0042296    -2.90   0.004    -.0205748   -.0039952
         2014  |  -.0073443    .005301    -1.39   0.166     -.017734    .0030455
         2015  |  -.0050856   .0055051    -0.92   0.356    -.0158753    .0057041
         2016  |   .0002278   .0057627     0.04   0.968    -.0110668    .0115224
         2017  |   .0076132   .0059247     1.28   0.199     -.003999    .0192254
         2018  |   .0134735   .0067498     2.00   0.046     .0002441    .0267029
         2019  |   .0190962   .0063619     3.00   0.003     .0066271    .0315653
               |
   entrycohort |
         1970  |   .0049315   .0060926     0.81   0.418    -.0070098    .0168729
         1971  |  -.0026805   .0049439    -0.54   0.588    -.0123703    .0070093
         1972  |  -.0004403   .0046065    -0.10   0.924    -.0094688    .0085883
         1973  |   .0010866   .0038777     0.28   0.779    -.0065135    .0086866
         1974  |  -.0034526   .0042465    -0.81   0.416    -.0117755    .0048704
         1975  |  -.0054116   .0042353    -1.28   0.201    -.0137125    .0028894
         1976  |  -.0065943   .0043927    -1.50   0.133    -.0152039    .0020152
         1977  |  -.0046617   .0034075    -1.37   0.171    -.0113404     .002017
         1978  |  -.0019385   .0039989    -0.48   0.628    -.0097762    .0058991
         1979  |   -.000601   .0039025    -0.15   0.878    -.0082498    .0070478
         1980  |  -.0037823   .0025508    -1.48   0.138    -.0087818    .0012172
         1981  |  -.0022189   .0029206    -0.76   0.447    -.0079432    .0035054
         1982  |  -.0039728   .0027751    -1.43   0.152     -.009412    .0014663
         1983  |  -.0007545   .0026845    -0.28   0.779     -.006016     .004507
         1985  |  -.0028526   .0023345    -1.22   0.222    -.0074281    .0017229
         1986  |  -.0039119   .0029313    -1.33   0.182    -.0096571    .0018333
         1987  |   .0000652   .0034168     0.02   0.985    -.0066316     .006762
         1988  |  -.0010252   .0026241    -0.39   0.696    -.0061683     .004118
         1989  |  -.0010613   .0035959    -0.30   0.768    -.0081091    .0059865
         1990  |  -.0036529   .0030158    -1.21   0.226    -.0095638     .002258
         1991  |  -.0039424   .0029159    -1.35   0.176    -.0096575    .0017727
         1992  |  -.0016606   .0034946    -0.48   0.635      -.00851    .0051887
         1993  |   .0012572   .0026081     0.48   0.630    -.0038545     .006369
         1994  |  -.0022739   .0026212    -0.87   0.386    -.0074113    .0028636
         1995  |   .0005917   .0024951     0.24   0.813    -.0042986     .005482
         1996  |   .0001171   .0024466     0.05   0.962    -.0046782    .0049123
         1997  |   .0008166   .0026987     0.30   0.762    -.0044728    .0061061
         1998  |  -.0002687   .0029072    -0.09   0.926    -.0059667    .0054293
         1999  |   .0021817   .0036588     0.60   0.551    -.0049894    .0093527
         2000  |          0  (omitted)
         2001  |  -.0030302   .0025944    -1.17   0.243    -.0081152    .0020547
         2002  |  -.0031696   .0032465    -0.98   0.329    -.0095326    .0031935
         2003  |  -.0009167   .0033118    -0.28   0.782    -.0074078    .0055744
         2004  |  -.0035672   .0043468    -0.82   0.412    -.0120867    .0049522
         2005  |  -.0096559    .005201    -1.86   0.063    -.0198497    .0005378
         2006  |  -.0086905    .003076    -2.83   0.005    -.0147193   -.0026617
         2007  |  -.0108498   .0056779    -1.91   0.056    -.0219783    .0002787
         2008  |  -.0136083   .0042952    -3.17   0.002    -.0220268   -.0051899
         2009  |  -.0145882   .0064463    -2.26   0.024    -.0272227   -.0019536
         2010  |  -.0185647   .0070272    -2.64   0.008    -.0323378   -.0047917
         2011  |  -.0181804   .0073795    -2.46   0.014    -.0326439   -.0037169
         2012  |   -.021527   .0087683    -2.46   0.014    -.0387126   -.0043413
         2013  |  -.0238584   .0081978    -2.91   0.004    -.0399259    -.007791
         2014  |  -.0300783   .0083309    -3.61   0.000    -.0464066     -.01375
         2015  |  -.0339398    .011401    -2.98   0.003    -.0562855   -.0115942
         2016  |  -.0354132   .0106816    -3.32   0.001    -.0563487   -.0144777
         2017  |  -.0476428   .0102221    -4.66   0.000    -.0676777   -.0276079
         2018  |    -.05745   .0103264    -5.56   0.000    -.0776894   -.0372106
         2019  |  -.0552424   .0172194    -3.21   0.001    -.0889918   -.0214931
               |
        fipsst |
           AL  |   .0253047   .0008836    28.64   0.000     .0235729    .0270365
           AK  |    .012417   .0007252    17.12   0.000     .0109956    .0138384
           AZ  |    .010408   .0006847    15.20   0.000      .009066      .01175
           AR  |   .0375888   .0011126    33.79   0.000     .0354082    .0397694
           CO  |   .0338417   .0016841    20.10   0.000      .030541    .0371424
           CT  |   .0155611   .0020948     7.43   0.000     .0114554    .0196668
           DE  |   .0343906   .0011861    28.99   0.000     .0320659    .0367154
           DC  |   .0410209   .0029061    14.12   0.000      .035325    .0467167
           FL  |   .0104724   .0006386    16.40   0.000     .0092208     .011724
           GA  |   .0175339   .0007668    22.87   0.000      .016031    .0190368
           HI  |   .0217272   .0013498    16.10   0.000     .0190817    .0243727
           ID  |   .0193121   .0009783    19.74   0.000     .0173946    .0212296
           IL  |   .0187637   .0007231    25.95   0.000     .0173465    .0201809
           IN  |   .0352828   .0007267    48.55   0.000     .0338585    .0367071
           IA  |   .0524877   .0015291    34.33   0.000     .0494907    .0554847
           KS  |   .0327793   .0017473    18.76   0.000     .0293547    .0362039
           KY  |   .0388113   .0006794    57.13   0.000     .0374797    .0401429
           LA  |   .0232557   .0007929    29.33   0.000     .0217016    .0248097
           ME  |   .0486857   .0007203    67.59   0.000      .047274    .0500975
           MD  |   .0311104   .0018154    17.14   0.000     .0275522    .0346686
           MA  |    .016822   .0023563     7.14   0.000     .0122038    .0214402
           MI  |   .0178481   .0006088    29.32   0.000     .0166549    .0190412
           MN  |   .0557647   .0018432    30.25   0.000      .052152    .0593774
           MS  |   .0296861   .0011238    26.42   0.000     .0274836    .0318887
           MO  |    .040608   .0007403    54.85   0.000      .039157    .0420591
           MT  |    .043052   .0007924    54.33   0.000     .0414988    .0446051
           NE  |   .0526612   .0021967    23.97   0.000     .0483557    .0569667
           NV  |   .0253407   .0013696    18.50   0.000     .0226564     .028025
           NH  |   .0328748   .0021218    15.49   0.000     .0287162    .0370334
           NJ  |  -.0025527   .0015371    -1.66   0.097    -.0055654      .00046
           NM  |   .0051955    .000738     7.04   0.000     .0037491     .006642
           NY  |  -.0060473   .0011059    -5.47   0.000    -.0082149   -.0038797
           NC  |   .0233469   .0008307    28.10   0.000     .0217187    .0249751
           ND  |   .0586737   .0020146    29.12   0.000     .0547252    .0626223
           OH  |    .033829   .0002747   123.15   0.000     .0332906    .0343674
           OK  |   .0189036   .0010729    17.62   0.000     .0168007    .0210065
           OR  |   .0114826   .0001345    85.39   0.000     .0112191    .0117462
           PA  |   .0225058   .0006224    36.16   0.000     .0212859    .0237257
           RI  |   .0276833   .0009139    30.29   0.000     .0258921    .0294744
           SC  |   .0277864   .0005866    47.37   0.000     .0266367     .028936
           SD  |   .0663389   .0019311    34.35   0.000      .062554    .0701238
           TN  |   .0251482    .000584    43.06   0.000     .0240035    .0262928
           TX  |   .0157188   .0006372    24.67   0.000       .01447    .0169676
           UT  |  -.0089853   .0012649    -7.10   0.000    -.0114645   -.0065061
           VT  |   .0350994   .0018926    18.55   0.000     .0313901    .0388088
           VA  |   .0239723   .0019366    12.38   0.000     .0201768    .0277679
           WA  |   .0148904     .00027    55.14   0.000     .0143611    .0154197
           WV  |   .0327972   .0017112    19.17   0.000     .0294433    .0361512
           WI  |   .0542169   .0009793    55.36   0.000     .0522975    .0561362
           WY  |   .0341957    .001243    27.51   0.000     .0317595    .0366319
               |
       imr_ycs |  -.0156109   .0064276    -2.43   0.015    -.0282088   -.0030131
          dur0 |  -.0006753   .0006846    -0.99   0.324    -.0020172    .0006666
         _cons |   .8591272   .0083854   102.46   0.000     .8426921    .8755623
--------------------------------------------------------------------------------
Endogenous: c.ur0#c.expgp0 c.ur0#c.expgp2 c.ur0#c.expgp4 c.ur0#c.expgp6
            c.ur0#c.expgp8
Exogenous:  0.exper 1.exper 2.exper 3.exper 4.exper 5.exper 6.exper 7.exper
            8.exper 9.exper 11.exper 12.exper 13.exper 14.exper 15.exper
            16.exper 17.exper 18.exper 1979.year 1980.year 1981.year 1982.year
            1983.year 1984.year 1985.year 1986.year 1987.year 1988.year
            1989.year 1990.year 1991.year 1992.year 1993.year 1994.year
            1995.year 1996.year 1997.year 1998.year 1999.year 2000.year
            2001.year 2002.year 2003.year 2004.year 2005.year 2006.year
            2008.year 2009.year 2010.year 2011.year 2012.year 2013.year
            2014.year 2015.year 2016.year 2017.year 2018.year 2019.year
            1970.entrycohort 1971.entrycohort 1972.entrycohort
            1973.entrycohort 1974.entrycohort 1975.entrycohort
            1976.entrycohort 1977.entrycohort 1978.entrycohort
            1979.entrycohort 1980.entrycohort 1981.entrycohort
            1982.entrycohort 1983.entrycohort 1985.entrycohort
            1986.entrycohort 1987.entrycohort 1988.entrycohort
            1989.entrycohort 1990.entrycohort 1991.entrycohort
            1992.entrycohort 1993.entrycohort 1994.entrycohort
            1995.entrycohort 1996.entrycohort 1997.entrycohort
            1998.entrycohort 1999.entrycohort 2001.entrycohort
            2002.entrycohort 2003.entrycohort 2004.entrycohort
            2005.entrycohort 2006.entrycohort 2007.entrycohort
            2008.entrycohort 2009.entrycohort 2010.entrycohort
            2011.entrycohort 2012.entrycohort 2013.entrycohort
            2014.entrycohort 2015.entrycohort 2016.entrycohort
            2017.entrycohort 2018.entrycohort 2019.entrycohort 1.fipsst
            2.fipsst 4.fipsst 5.fipsst 8.fipsst 9.fipsst 10.fipsst 11.fipsst
            12.fipsst 13.fipsst 15.fipsst 16.fipsst 17.fipsst 18.fipsst
            19.fipsst 20.fipsst 21.fipsst 22.fipsst 23.fipsst 24.fipsst
            25.fipsst 26.fipsst 27.fipsst 28.fipsst 29.fipsst 30.fipsst
            31.fipsst 32.fipsst 33.fipsst 34.fipsst 35.fipsst 36.fipsst
            37.fipsst 38.fipsst 39.fipsst 40.fipsst 41.fipsst 42.fipsst
            44.fipsst 45.fipsst 46.fipsst 47.fipsst 48.fipsst 49.fipsst
            50.fipsst 51.fipsst 53.fipsst 54.fipsst 55.fipsst 56.fipsst
            imr_ycs dur0 c.UR22_dw#c.expgp0 c.UR22_dw#c.expgp2
            c.UR22_dw#c.expgp4 c.UR22_dw#c.expgp6 c.UR22_dw#c.expgp8

.         eststo mD_2sls

.     forvalues c = 0(2)8 {
  2.       local bD_2sls_`c'=_b[c.ur0#c.expgp`c']
  3.       local seD_2sls_`c'=_se[c.ur0#c.expgp`c']
  4.     }

.     matrix results_D2sls=(0, `bD_2sls_0', `seD_2sls_0' \ ///
>                           2, `bD_2sls_2', `seD_2sls_2' \ ///
>                           4, `bD_2sls_4', `seD_2sls_4' \ ///
>                           6, `bD_2sls_6', `seD_2sls_6' \ ///
>                           8, `bD_2sls_8', `seD_2sls_8' \ 10, 0, 0)

.     matrix colnames results_D2sls=period2 beta_D2sls se_D2sls

. 
.  //OLS, model E, estsampb
.     reg empl ib10.exper ib2007.year ib1984o2000.entrycohort ib6.fipsst imr_ycs  ///
>           c.ur_st#c.expgp0 c.ur_st#c.expgp2 c.ur_st#c.expgp4 c.ur_st#c.expgp6 c.ur_st#c.expgp8 c.dur ///
>           c.ur0#c.expgp0 c.ur0#c.expgp2 c.ur0#c.expgp4 c.ur0#c.expgp6 c.ur0#c.expgp8 c.dur0 ///
>         [aw=bigcpswgt] if estsampb==1, cluster(fipsst) 
(sum of wgt is 10,042,217,198.87)

Linear regression                               Number of obs     =     37,434
                                                F(49, 50)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.3256
                                                Root MSE          =     .04954

                                    (Std. err. adjusted for 51 clusters in fipsst)
----------------------------------------------------------------------------------
                 |               Robust
            empl | Coefficient  std. err.      t    P>|t|     [95% conf. interval]
-----------------+----------------------------------------------------------------
           exper |
              0  |  -.0670022   .0083942    -7.98   0.000    -.0838624   -.0501419
              1  |  -.0092059   .0088968    -1.03   0.306    -.0270756    .0086639
              2  |   .0088207   .0062458     1.41   0.164    -.0037245    .0213658
              3  |   .0227892   .0067681     3.37   0.001     .0091951    .0363832
              4  |   .0272509   .0063611     4.28   0.000     .0144742    .0400275
              5  |   .0332888   .0070478     4.72   0.000     .0191329    .0474447
              6  |   .0197607   .0058669     3.37   0.001     .0079767    .0315448
              7  |   .0205775   .0056688     3.63   0.001     .0091913    .0319637
              8  |   .0262317   .0067743     3.87   0.000     .0126252    .0398382
              9  |    .022977   .0061391     3.74   0.000     .0106463    .0353077
             11  |   .0004161   .0016665     0.25   0.804    -.0029312    .0037633
             12  |  -.0005733   .0019568    -0.29   0.771    -.0045036    .0033571
             13  |  -.0019675   .0019072    -1.03   0.307    -.0057982    .0018632
             14  |  -.0014824   .0021714    -0.68   0.498    -.0058439     .002879
             15  |  -.0002217   .0026704    -0.08   0.934    -.0055853    .0051419
             16  |   .0043496   .0025756     1.69   0.097    -.0008236    .0095228
             17  |    .005688   .0020945     2.72   0.009      .001481    .0098949
             18  |   .0088222   .0029521     2.99   0.004     .0028928    .0147517
                 |
            year |
           1979  |   .0004649   .0085092     0.05   0.957    -.0166264    .0175562
           1980  |   .0008516    .007243     0.12   0.907    -.0136964    .0153996
           1981  |   .0026657   .0070014     0.38   0.705    -.0113971    .0167285
           1982  |   .0026562   .0070836     0.37   0.709    -.0115717     .016884
           1983  |   .0042454   .0065681     0.65   0.521     -.008947    .0174379
           1984  |   .0122752   .0058572     2.10   0.041     .0005107    .0240398
           1985  |   .0194533   .0057511     3.38   0.001     .0079018    .0310048
           1986  |   .0214115   .0054687     3.92   0.000     .0104273    .0323957
           1987  |   .0230601   .0051229     4.50   0.000     .0127704    .0333497
           1988  |   .0282306    .005299     5.33   0.000     .0175872     .038874
           1989  |   .0260173   .0047734     5.45   0.000     .0164298    .0356049
           1990  |   .0244479   .0040525     6.03   0.000     .0163081    .0325876
           1991  |   .0159932   .0042372     3.77   0.000     .0074825    .0245038
           1992  |   .0179438   .0032365     5.54   0.000     .0114432    .0244445
           1993  |   .0212056   .0037864     5.60   0.000     .0136004    .0288109
           1994  |   .0230348   .0035097     6.56   0.000     .0159853    .0300843
           1995  |   .0195038   .0035463     5.50   0.000     .0123809    .0266267
           1996  |   .0189439   .0028013     6.76   0.000     .0133174    .0245705
           1997  |   .0208882   .0027073     7.72   0.000     .0154505     .026326
           1998  |   .0155763    .002698     5.77   0.000     .0101571    .0209955
           1999  |   .0134326   .0029738     4.52   0.000     .0074595    .0194058
           2000  |   .0104718   .0030243     3.46   0.001     .0043972    .0165464
           2001  |  -.0005173   .0032947    -0.16   0.876    -.0071348    .0061002
           2002  |  -.0062755    .002676    -2.35   0.023    -.0116503   -.0009007
           2003  |  -.0152167   .0023272    -6.54   0.000    -.0198909   -.0105424
           2004  |  -.0075814   .0022819    -3.32   0.002    -.0121646   -.0029981
           2005  |  -.0050171   .0020554    -2.44   0.018    -.0091455   -.0008888
           2006  |     .00048   .0028176     0.17   0.865    -.0051793    .0061394
           2008  |   .0001761   .0026412     0.07   0.947     -.005129    .0054811
           2009  |  -.0120322   .0033047    -3.64   0.001    -.0186698   -.0053945
           2010  |  -.0151193   .0037747    -4.01   0.000     -.022701   -.0075376
           2011  |  -.0152037   .0037537    -4.05   0.000    -.0227433   -.0076642
           2012  |  -.0097591   .0040997    -2.38   0.021    -.0179936   -.0015246
           2013  |  -.0092184   .0038986    -2.36   0.022     -.017049   -.0013877
           2014  |  -.0063028   .0049722    -1.27   0.211    -.0162897     .003684
           2015  |   -.005272   .0053511    -0.99   0.329      -.01602    .0054761
           2016  |  -.0004102   .0056709    -0.07   0.943    -.0118006    .0109802
           2017  |   .0063453   .0059621     1.06   0.292    -.0056299    .0183206
           2018  |     .01176    .006803     1.73   0.090    -.0019042    .0254242
           2019  |   .0172523   .0064479     2.68   0.010     .0043014    .0302032
                 |
     entrycohort |
           1970  |    .000944   .0061442     0.15   0.879    -.0113971     .013285
           1971  |  -.0057477   .0050545    -1.14   0.261    -.0158999    .0044045
           1972  |  -.0028742   .0045716    -0.63   0.532    -.0120565    .0063082
           1973  |  -.0005064   .0039621    -0.13   0.899    -.0084645    .0074518
           1974  |  -.0044359   .0044639    -0.99   0.325    -.0134019    .0045301
           1975  |  -.0064354    .004207    -1.53   0.132    -.0148855    .0020146
           1976  |  -.0073519   .0043914    -1.67   0.100    -.0161722    .0014684
           1977  |    -.00512   .0034214    -1.50   0.141    -.0119921    .0017522
           1978  |  -.0021227   .0039766    -0.53   0.596      -.01011    .0058645
           1979  |  -.0004043   .0039441    -0.10   0.919    -.0083262    .0075177
           1980  |  -.0039953   .0025539    -1.56   0.124     -.009125    .0011345
           1981  |  -.0022519    .002979    -0.76   0.453    -.0082354    .0037315
           1982  |  -.0046964   .0028966    -1.62   0.111    -.0105144    .0011215
           1983  |  -.0015991   .0027281    -0.59   0.560    -.0070786    .0038803
           1985  |  -.0028296   .0023032    -1.23   0.225    -.0074556    .0017965
           1986  |  -.0040583   .0027427    -1.48   0.145    -.0095671    .0014505
           1987  |    .000108   .0032237     0.03   0.973    -.0063669     .006583
           1988  |    -.00073   .0025346    -0.29   0.775    -.0058208    .0043609
           1989  |   -.000655   .0033102    -0.20   0.844    -.0073037    .0059937
           1990  |  -.0034171   .0030114    -1.13   0.262    -.0094656    .0026314
           1991  |  -.0048241   .0027337    -1.76   0.084     -.010315    .0006667
           1992  |  -.0034151   .0033868    -1.01   0.318    -.0102177    .0033874
           1993  |   -.000754   .0025718    -0.29   0.771    -.0059197    .0044117
           1994  |  -.0042298   .0026156    -1.62   0.112    -.0094835    .0010238
           1995  |  -.0013246   .0025257    -0.52   0.602    -.0063976    .0037483
           1996  |  -.0017594   .0024533    -0.72   0.477     -.006687    .0031683
           1997  |  -.0009571   .0027944    -0.34   0.733    -.0065697    .0046556
           1998  |  -.0017881   .0029072    -0.62   0.541    -.0076274    .0040511
           1999  |   .0010212   .0038261     0.27   0.791    -.0066637    .0087061
           2000  |          0  (omitted)
           2001  |  -.0021385    .002558    -0.84   0.407    -.0072763    .0029993
           2002  |   -.001898   .0032473    -0.58   0.562    -.0084203    .0046243
           2003  |   .0007574   .0032561     0.23   0.817    -.0057826    .0072974
           2004  |  -.0011398   .0046333    -0.25   0.807    -.0104461    .0081666
           2005  |  -.0067367    .005457    -1.23   0.223    -.0176974    .0042241
           2006  |  -.0052097   .0033378    -1.56   0.125    -.0119139    .0014944
           2007  |  -.0069492   .0061013    -1.14   0.260     -.019204    .0053056
           2008  |  -.0097864   .0047953    -2.04   0.047    -.0194181   -.0001548
           2009  |  -.0138603   .0073114    -1.90   0.064    -.0285457     .000825
           2010  |   -.019823   .0075911    -2.61   0.012    -.0350702   -.0045757
           2011  |  -.0199011   .0078502    -2.54   0.014    -.0356686   -.0041336
           2012  |  -.0235875    .009017    -2.62   0.012    -.0416985   -.0054764
           2013  |  -.0265248   .0082787    -3.20   0.002    -.0431531   -.0098965
           2014  |  -.0325353   .0082145    -3.96   0.000    -.0490346   -.0160361
           2015  |  -.0358563    .011227    -3.19   0.002    -.0584064   -.0133063
           2016  |  -.0375752   .0106625    -3.52   0.001    -.0589916   -.0161589
           2017  |  -.0498132   .0104032    -4.79   0.000    -.0707087   -.0289176
           2018  |  -.0586407   .0107471    -5.46   0.000    -.0802269   -.0370545
           2019  |  -.0563083   .0175004    -3.22   0.002     -.091459   -.0211576
                 |
          fipsst |
             AL  |   .0234265   .0008336    28.10   0.000     .0217521    .0251009
             AK  |   .0145969   .0008162    17.88   0.000     .0129574    .0162363
             AZ  |   .0061981   .0009889     6.27   0.000     .0042118    .0081843
             AR  |   .0327556   .0012905    25.38   0.000     .0301636    .0353475
             CO  |   .0253847   .0021404    11.86   0.000     .0210856    .0296838
             CT  |   .0080422    .002293     3.51   0.001     .0034367    .0126478
             DE  |   .0251247   .0019007    13.22   0.000     .0213072    .0289423
             DC  |   .0443752   .0027985    15.86   0.000     .0387543     .049996
             FL  |   .0051602   .0010939     4.72   0.000     .0029629    .0073574
             GA  |   .0123635   .0011539    10.71   0.000     .0100458    .0146812
             HI  |   .0096016   .0023203     4.14   0.000     .0049411     .014262
             ID  |   .0119924   .0015245     7.87   0.000     .0089304    .0150545
             IL  |   .0176956   .0007527    23.51   0.000     .0161838    .0192074
             IN  |   .0295876   .0011547    25.62   0.000     .0272683     .031907
             IA  |   .0400822   .0025207    15.90   0.000     .0350192    .0451452
             KS  |   .0216773   .0024588     8.82   0.000     .0167385     .026616
             KY  |   .0366108   .0007113    51.47   0.000      .035182    .0380396
             LA  |   .0229239   .0006894    33.25   0.000     .0215392    .0243087
             ME  |   .0410679   .0013591    30.22   0.000     .0383381    .0437978
             MD  |   .0226851   .0022432    10.11   0.000     .0181796    .0271907
             MA  |    .009008   .0025824     3.49   0.001     .0038211    .0141949
             MI  |   .0196889   .0006194    31.79   0.000     .0184447     .020933
             MN  |   .0451613    .002483    18.19   0.000      .040174    .0501487
             MS  |   .0307737    .001034    29.76   0.000     .0286968    .0328506
             MO  |   .0345621   .0012325    28.04   0.000     .0320865    .0370377
             MT  |   .0357827   .0013677    26.16   0.000     .0330356    .0385297
             NE  |   .0358204   .0034705    10.32   0.000     .0288498     .042791
             NV  |   .0230006   .0013846    16.61   0.000     .0202195    .0257817
             NH  |   .0197176   .0029464     6.69   0.000     .0137996    .0256356
             NJ  |  -.0071726   .0016288    -4.40   0.000    -.0104441    -.003901
             NM  |   .0020189   .0008266     2.44   0.018     .0003587    .0036791
             NY  |  -.0098231   .0012582    -7.81   0.000    -.0123502    -.007296
             NC  |   .0177035   .0012591    14.06   0.000     .0151745    .0202325
             ND  |   .0426864   .0032304    13.21   0.000     .0361979    .0491749
             OH  |   .0310054    .000529    58.61   0.000     .0299427     .032068
             OK  |   .0093057   .0018557     5.01   0.000     .0055784    .0130331
             OR  |   .0101697   .0002666    38.14   0.000     .0096341    .0107053
             PA  |   .0184828   .0009291    19.89   0.000     .0166166     .020349
             RI  |   .0242435   .0010286    23.57   0.000     .0221775    .0263094
             SC  |    .024371   .0008013    30.41   0.000     .0227615    .0259805
             SD  |    .050322   .0032025    15.71   0.000     .0438896    .0567543
             TN  |   .0207291   .0009323    22.23   0.000     .0188566    .0226016
             TX  |   .0101175   .0011248     9.00   0.000     .0078583    .0123767
             UT  |   -.020401   .0023012    -8.87   0.000    -.0250231   -.0157789
             VT  |   .0226124    .002705     8.36   0.000     .0171792    .0280456
             VA  |   .0127523   .0026499     4.81   0.000     .0074298    .0180749
             WA  |   .0128565   .0004485    28.66   0.000     .0119556    .0137573
             WV  |   .0357699   .0015992    22.37   0.000     .0325579     .038982
             WI  |   .0461432   .0016205    28.48   0.000     .0428884    .0493981
             WY  |   .0236685   .0020084    11.78   0.000     .0196345    .0277025
                 |
         imr_ycs |  -.0126282   .0059778    -2.11   0.040     -.024635   -.0006214
                 |
c.ur_st#c.expgp0 |  -.0075186   .0014285    -5.26   0.000    -.0103879   -.0046493
                 |
c.ur_st#c.expgp2 |  -.0035306   .0008522    -4.14   0.000    -.0052424   -.0018188
                 |
c.ur_st#c.expgp4 |  -.0031938   .0007894    -4.05   0.000    -.0047794   -.0016081
                 |
c.ur_st#c.expgp6 |  -.0030996   .0007111    -4.36   0.000    -.0045279   -.0016712
                 |
c.ur_st#c.expgp8 |  -.0029135   .0009122    -3.19   0.002    -.0047458   -.0010813
                 |
             dur |  -.0032811   .0007483    -4.38   0.000    -.0047841   -.0017781
                 |
  c.ur0#c.expgp0 |   .0003102   .0018484     0.17   0.867    -.0034025    .0040229
                 |
  c.ur0#c.expgp2 |  -.0022919   .0007665    -2.99   0.004    -.0038316   -.0007523
                 |
  c.ur0#c.expgp4 |  -.0008271   .0007757    -1.07   0.291    -.0023851    .0007309
                 |
  c.ur0#c.expgp6 |   .0011661   .0006305     1.85   0.070    -.0001002    .0024325
                 |
  c.ur0#c.expgp8 |  -.0003761   .0006458    -0.58   0.563    -.0016733    .0009211
                 |
            dur0 |  -.0007596   .0006304    -1.20   0.234    -.0020257    .0005066
           _cons |   .8582663   .0073186   117.27   0.000     .8435665    .8729661
----------------------------------------------------------------------------------

.         eststo mE_ols

.     forvalues c = 0(2)8 {
  2.       local bE_ols_`c'=_b[c.ur0#c.expgp`c']
  3.       local seE_ols_`c'=_se[c.ur0#c.expgp`c']
  4.     }

.     matrix results_Eols=(0, `bE_ols_0', `seE_ols_0' \ ///
>                          2, `bE_ols_2', `seE_ols_2' \ ///
>                          4, `bE_ols_4', `seE_ols_4' \ ///
>                          6, `bE_ols_6', `seE_ols_6' \ ///
>                          8, `bE_ols_8', `seE_ols_8' \ 10, 0, 0)

.     matrix colnames results_Eols=period3 beta_Eols se_Eols

.  //IV, model E, estsampb
.     ivregress 2sls empl ib10.exper ib2007.year ib1984o2000.entrycohort ib6.fipsst imr_ycs  c.dur0 ///
>           c.ur_st#c.expgp0 c.ur_st#c.expgp2 c.ur_st#c.expgp4 c.ur_st#c.expgp6 c.ur_st#c.expgp8 c.dur ///
>         (c.ur0#c.expgp0     c.ur0#c.expgp2     c.ur0#c.expgp4     c.ur0#c.expgp6     c.ur0#c.expgp8 = ///
>          c.UR22_dw#c.expgp0 c.UR22_dw#c.expgp2 c.UR22_dw#c.expgp4 c.UR22_dw#c.expgp6 c.UR22_dw#c.expgp8) ///
>         [aw=bigcpswgt] if estsampb==1, cluster(fipsst) 
(sum of wgt is   1.0042e+10)
note: 1978.year identifies no observations in the sample.

Instrumental variables 2SLS regression            Number of obs   =     37,434
                                                  Wald chi2(169)  =  146468.46
                                                  Prob > chi2     =     0.0000
                                                  R-squared       =     0.3252
                                                  Root MSE        =     .04944

                                    (Std. err. adjusted for 51 clusters in fipsst)
----------------------------------------------------------------------------------
                 |               Robust
            empl | Coefficient  std. err.      z    P>|z|     [95% conf. interval]
-----------------+----------------------------------------------------------------
  c.ur0#c.expgp0 |   .0055723   .0022002     2.53   0.011       .00126    .0098846
                 |
  c.ur0#c.expgp2 |  -.0011208   .0007606    -1.47   0.141    -.0026115    .0003698
                 |
  c.ur0#c.expgp4 |  -.0005236   .0007615    -0.69   0.492    -.0020162    .0009689
                 |
  c.ur0#c.expgp6 |   .0010625   .0006463     1.64   0.100    -.0002043    .0023293
                 |
  c.ur0#c.expgp8 |  -.0006354   .0007089    -0.90   0.370    -.0020248    .0007541
                 |
           exper |
              0  |   -.069978   .0083133    -8.42   0.000    -.0862716   -.0536843
              1  |  -.0125956   .0087732    -1.44   0.151    -.0297908    .0045995
              2  |   .0059166   .0060542     0.98   0.328    -.0059495    .0177826
              3  |   .0197195   .0066088     2.98   0.003     .0067665    .0326726
              4  |   .0268737   .0063264     4.25   0.000     .0144741    .0392733
              5  |   .0328543   .0068557     4.79   0.000     .0194174    .0462912
              6  |   .0215013   .0061205     3.51   0.000     .0095052    .0334973
              7  |   .0222139   .0058138     3.82   0.000      .010819    .0336088
              8  |   .0283823   .0067516     4.20   0.000     .0151495    .0416151
              9  |   .0250116   .0062959     3.97   0.000     .0126719    .0373513
             11  |   .0003743   .0016352     0.23   0.819    -.0028306    .0035793
             12  |  -.0005974    .001912    -0.31   0.755     -.004345    .0031501
             13  |  -.0019765   .0018803    -1.05   0.293    -.0056619    .0017089
             14  |  -.0015078    .002147    -0.70   0.483    -.0057159    .0027003
             15  |  -.0002998   .0026358    -0.11   0.909    -.0054658    .0048662
             16  |   .0042232   .0025334     1.67   0.096    -.0007422    .0091886
             17  |   .0055123   .0020823     2.65   0.008      .001431    .0095935
             18  |   .0086048   .0029068     2.96   0.003     .0029075    .0143021
                 |
            year |
           1978  |          0  (empty)
           1979  |  -.0012027   .0083107    -0.14   0.885    -.0174914    .0150861
           1980  |   .0001932   .0071262     0.03   0.978    -.0137738    .0141603
           1981  |   .0018842   .0068998     0.27   0.785    -.0116392    .0154075
           1982  |   .0025769   .0070104     0.37   0.713    -.0111633    .0163171
           1983  |   .0034871   .0066222     0.53   0.598    -.0094921    .0164663
           1984  |   .0106784   .0059379     1.80   0.072    -.0009597    .0223165
           1985  |   .0182036   .0057414     3.17   0.002     .0069507    .0294565
           1986  |   .0203317   .0055228     3.68   0.000     .0095073    .0311562
           1987  |   .0219736    .005243     4.19   0.000     .0116975    .0322496
           1988  |   .0272937    .005347     5.10   0.000     .0168138    .0377736
           1989  |   .0253445   .0048539     5.22   0.000     .0158311    .0348579
           1990  |   .0240748    .004149     5.80   0.000     .0159429    .0322068
           1991  |   .0159928   .0042559     3.76   0.000     .0076513    .0243343
           1992  |    .017893   .0033185     5.39   0.000     .0113888    .0243972
           1993  |   .0207989   .0038472     5.41   0.000     .0132586    .0283392
           1994  |   .0224728   .0035875     6.26   0.000     .0154414    .0295041
           1995  |   .0190026   .0035932     5.29   0.000       .01196    .0260452
           1996  |   .0185693    .002904     6.39   0.000     .0128776     .024261
           1997  |   .0205573     .00281     7.32   0.000     .0150497    .0260648
           1998  |   .0153678   .0027264     5.64   0.000     .0100241    .0207115
           1999  |   .0133574   .0029977     4.46   0.000     .0074819    .0192328
           2000  |   .0105238   .0030468     3.45   0.001     .0045522    .0164953
           2001  |  -.0001761   .0032908    -0.05   0.957    -.0066259    .0062737
           2002  |  -.0057989   .0026523    -2.19   0.029    -.0109973   -.0006004
           2003  |  -.0149125   .0023315    -6.40   0.000    -.0194821   -.0103428
           2004  |  -.0075236    .002268    -3.32   0.001    -.0119689   -.0030783
           2005  |    -.00506   .0020419    -2.48   0.013    -.0090621   -.0010579
           2006  |   .0003665   .0027835     0.13   0.895    -.0050891    .0058221
           2008  |   .0005242   .0026069     0.20   0.841    -.0045851    .0056336
           2009  |  -.0108821   .0033079    -3.29   0.001    -.0173655   -.0043988
           2010  |   -.014601   .0037054    -3.94   0.000    -.0218634   -.0073385
           2011  |  -.0151489   .0036696    -4.13   0.000    -.0223411   -.0079567
           2012  |   -.009998   .0040381    -2.48   0.013    -.0179126   -.0020834
           2013  |   -.009478   .0038709    -2.45   0.014    -.0170647   -.0018912
           2014  |  -.0066525   .0049298    -1.35   0.177    -.0163147    .0030097
           2015  |  -.0054334   .0053341    -1.02   0.308    -.0158881    .0050212
           2016  |  -.0002546   .0056473    -0.05   0.964    -.0113231    .0108138
           2017  |   .0067293   .0059284     1.14   0.256    -.0048901    .0183488
           2018  |   .0123115   .0067259     1.83   0.067     -.000871     .025494
           2019  |   .0179319   .0063472     2.83   0.005     .0054916    .0303723
                 |
     entrycohort |
           1970  |   .0019068   .0058391     0.33   0.744    -.0095375    .0133512
           1971  |  -.0048088   .0048729    -0.99   0.324    -.0143595    .0047418
           1972  |  -.0020281   .0044163    -0.46   0.646    -.0106838    .0066277
           1973  |   .0002155   .0038948     0.06   0.956    -.0074182    .0078492
           1974  |   -.003726   .0043184    -0.86   0.388    -.0121899    .0047379
           1975  |  -.0057055   .0041094    -1.39   0.165    -.0137599    .0023489
           1976  |  -.0067197   .0041701    -1.61   0.107    -.0148929    .0014536
           1977  |  -.0045117     .00329    -1.37   0.170    -.0109601    .0019366
           1978  |  -.0014503   .0039139    -0.37   0.711    -.0091214    .0062208
           1979  |    .000574   .0037763     0.15   0.879    -.0068274    .0079753
           1980  |  -.0033816   .0024481    -1.38   0.167    -.0081799    .0014166
           1981  |  -.0015421   .0029125    -0.53   0.596    -.0072506    .0041663
           1982  |  -.0047423   .0028268    -1.68   0.093    -.0102828    .0007982
           1983  |  -.0020664   .0026549    -0.78   0.436    -.0072699     .003137
           1985  |  -.0028986   .0022776    -1.27   0.203    -.0073627    .0015656
           1986  |  -.0042575    .002711    -1.57   0.116    -.0095709    .0010559
           1987  |   3.49e-06   .0031754     0.00   0.999    -.0062203    .0062272
           1988  |  -.0006717   .0024935    -0.27   0.788    -.0055589    .0042155
           1989  |  -.0004875   .0032466    -0.15   0.881    -.0068507    .0058757
           1990  |  -.0032269   .0029419    -1.10   0.273    -.0089929    .0025392
           1991  |  -.0050201   .0027211    -1.84   0.065    -.0103533    .0003131
           1992  |  -.0039615     .00337    -1.18   0.240    -.0105664    .0026435
           1993  |  -.0012996   .0025911    -0.50   0.616     -.006378    .0037789
           1994  |  -.0046447    .002588    -1.79   0.073     -.009717    .0004277
           1995  |  -.0016534   .0025219    -0.66   0.512    -.0065962    .0032894
           1996  |    -.00211   .0024441    -0.86   0.388    -.0069003    .0026803
           1997  |  -.0012642   .0027812    -0.45   0.649    -.0067152    .0041868
           1998  |  -.0020264    .002884    -0.70   0.482    -.0076788     .003626
           1999  |   .0008363   .0037949     0.22   0.826    -.0066017    .0082742
           2000  |          0  (omitted)
           2001  |  -.0021948    .002531    -0.87   0.386    -.0071554    .0027658
           2002  |   -.002218   .0032024    -0.69   0.489    -.0084946    .0040586
           2003  |   .0002779   .0032547     0.09   0.932    -.0061011    .0066569
           2004  |  -.0015442    .004559    -0.34   0.735    -.0104797    .0073913
           2005  |   -.007046   .0054002    -1.30   0.192    -.0176302    .0035383
           2006  |  -.0052011    .003323    -1.57   0.118    -.0117141    .0013118
           2007  |  -.0065423    .006029    -1.09   0.278    -.0183589    .0052742
           2008  |  -.0089781    .004667    -1.92   0.054    -.0181254    .0001691
           2009  |  -.0147532   .0070137    -2.10   0.035    -.0284997   -.0010066
           2010  |  -.0212979   .0073983    -2.88   0.004    -.0357984   -.0067974
           2011  |  -.0216777   .0075438    -2.87   0.004    -.0364633   -.0068921
           2012  |  -.0255417   .0087246    -2.93   0.003    -.0426415   -.0084419
           2013  |  -.0288588   .0081607    -3.54   0.000    -.0448536   -.0128641
           2014  |  -.0344239   .0081369    -4.23   0.000     -.050372   -.0184757
           2015  |  -.0370511   .0109511    -3.38   0.001    -.0585148   -.0155874
           2016  |  -.0387317   .0104889    -3.69   0.000    -.0592896   -.0181738
           2017  |  -.0508038   .0103105    -4.93   0.000    -.0710121   -.0305956
           2018  |  -.0590427   .0105718    -5.58   0.000    -.0797631   -.0383224
           2019  |   -.056206   .0171956    -3.27   0.001    -.0899087   -.0225033
                 |
          fipsst |
             AL  |    .023473   .0008228    28.53   0.000     .0218604    .0250856
             AK  |   .0147139    .000809    18.19   0.000     .0131282    .0162996
             AZ  |   .0061547   .0009744     6.32   0.000     .0042448    .0080645
             AR  |   .0327596   .0012709    25.78   0.000     .0302686    .0352506
             CO  |   .0252499   .0021104    11.96   0.000     .0211137    .0293862
             CT  |   .0079013    .002267     3.49   0.000      .003458    .0123445
             DE  |   .0250002   .0018683    13.38   0.000     .0213384    .0286621
             DC  |   .0443096    .002777    15.96   0.000     .0388668    .0497525
             FL  |   .0050975   .0010757     4.74   0.000     .0029891    .0072058
             GA  |   .0122564   .0011388    10.76   0.000     .0100244    .0144883
             HI  |   .0094349   .0022776     4.14   0.000     .0049709    .0138988
             ID  |   .0119359   .0014952     7.98   0.000     .0090053    .0148665
             IL  |   .0176562   .0007445    23.72   0.000     .0161971    .0191153
             IN  |   .0295264   .0011386    25.93   0.000     .0272948     .031758
             IA  |   .0399889   .0024735    16.17   0.000      .035141    .0448368
             KS  |   .0215339   .0024189     8.90   0.000      .016793    .0262749
             KY  |   .0366037   .0007021    52.14   0.000     .0352276    .0379797
             LA  |   .0229992   .0006824    33.71   0.000     .0216618    .0243366
             ME  |   .0409978   .0013325    30.77   0.000     .0383861    .0436095
             MD  |   .0225551   .0022113    10.20   0.000     .0182211    .0268891
             MA  |   .0088914   .0025518     3.48   0.000       .00389    .0138928
             MI  |   .0197498   .0006151    32.11   0.000     .0185442    .0209554
             MN  |   .0450153   .0024452    18.41   0.000     .0402228    .0498078
             MS  |   .0308404   .0010274    30.02   0.000     .0288267     .032854
             MO  |   .0344786   .0012103    28.49   0.000     .0321065    .0368508
             MT  |   .0357146   .0013363    26.73   0.000     .0330955    .0383336
             NE  |   .0356433   .0034103    10.45   0.000     .0289593    .0423274
             NV  |   .0229321   .0013774    16.65   0.000     .0202324    .0256317
             NH  |   .0195408   .0029001     6.74   0.000     .0138566     .025225
             NJ  |  -.0072833   .0016094    -4.53   0.000    -.0104376    -.004129
             NM  |   .0020597   .0008071     2.55   0.011     .0004778    .0036417
             NY  |  -.0098795   .0012412    -7.96   0.000    -.0123123   -.0074467
             NC  |   .0176016   .0012442    14.15   0.000     .0151631    .0200401
             ND  |   .0425413   .0031677    13.43   0.000     .0363327    .0487499
             OH  |   .0309985   .0005177    59.87   0.000     .0299838    .0320133
             OK  |   .0092451   .0018171     5.09   0.000     .0056836    .0128066
             OR  |    .010188   .0002575    39.56   0.000     .0096833    .0106927
             PA  |   .0184513   .0009114    20.24   0.000      .016665    .0202377
             RI  |   .0241408   .0010144    23.80   0.000     .0221527     .026129
             SC  |   .0243193   .0007937    30.64   0.000     .0227637    .0258749
             SD  |   .0501608   .0031454    15.95   0.000     .0439961    .0563256
             TN  |   .0206781   .0009167    22.56   0.000     .0188814    .0224748
             TX  |   .0100966   .0010992     9.19   0.000     .0079423     .012251
             UT  |  -.0205358   .0022575    -9.10   0.000    -.0249605   -.0161111
             VT  |   .0224741   .0026605     8.45   0.000     .0172596    .0276885
             VA  |   .0125857   .0026093     4.82   0.000     .0074715    .0176999
             WA  |   .0128778   .0004363    29.52   0.000     .0120228    .0137329
             WV  |   .0358878   .0015908    22.56   0.000     .0327698    .0390057
             WI  |   .0460557   .0015918    28.93   0.000     .0429358    .0491756
             WY  |   .0236034   .0019647    12.01   0.000     .0197526    .0274542
                 |
         imr_ycs |  -.0127783   .0059395    -2.15   0.031    -.0244196    -.001137
            dur0 |  -.0009013   .0006299    -1.43   0.152     -.002136    .0003333
                 |
c.ur_st#c.expgp0 |  -.0121917   .0020392    -5.98   0.000    -.0161885   -.0081949
                 |
c.ur_st#c.expgp2 |  -.0041651   .0008855    -4.70   0.000    -.0059007   -.0024295
                 |
c.ur_st#c.expgp4 |  -.0033764   .0008022    -4.21   0.000    -.0049487   -.0018041
                 |
c.ur_st#c.expgp6 |  -.0032175   .0007008    -4.59   0.000     -.004591   -.0018439
                 |
c.ur_st#c.expgp8 |  -.0029684   .0008887    -3.34   0.001    -.0047101   -.0012267
                 |
             dur |  -.0032604   .0007327    -4.45   0.000    -.0046965   -.0018242
           _cons |   .8585564   .0072853   117.85   0.000     .8442774    .8728353
----------------------------------------------------------------------------------
Endogenous: c.ur0#c.expgp0 c.ur0#c.expgp2 c.ur0#c.expgp4 c.ur0#c.expgp6
            c.ur0#c.expgp8
Exogenous:  0.exper 1.exper 2.exper 3.exper 4.exper 5.exper 6.exper 7.exper
            8.exper 9.exper 11.exper 12.exper 13.exper 14.exper 15.exper
            16.exper 17.exper 18.exper 1979.year 1980.year 1981.year 1982.year
            1983.year 1984.year 1985.year 1986.year 1987.year 1988.year
            1989.year 1990.year 1991.year 1992.year 1993.year 1994.year
            1995.year 1996.year 1997.year 1998.year 1999.year 2000.year
            2001.year 2002.year 2003.year 2004.year 2005.year 2006.year
            2008.year 2009.year 2010.year 2011.year 2012.year 2013.year
            2014.year 2015.year 2016.year 2017.year 2018.year 2019.year
            1970.entrycohort 1971.entrycohort 1972.entrycohort 1973.entrycohort
            1974.entrycohort 1975.entrycohort 1976.entrycohort 1977.entrycohort
            1978.entrycohort 1979.entrycohort 1980.entrycohort 1981.entrycohort
            1982.entrycohort 1983.entrycohort 1985.entrycohort 1986.entrycohort
            1987.entrycohort 1988.entrycohort 1989.entrycohort 1990.entrycohort
            1991.entrycohort 1992.entrycohort 1993.entrycohort 1994.entrycohort
            1995.entrycohort 1996.entrycohort 1997.entrycohort 1998.entrycohort
            1999.entrycohort 2001.entrycohort 2002.entrycohort 2003.entrycohort
            2004.entrycohort 2005.entrycohort 2006.entrycohort 2007.entrycohort
            2008.entrycohort 2009.entrycohort 2010.entrycohort 2011.entrycohort
            2012.entrycohort 2013.entrycohort 2014.entrycohort 2015.entrycohort
            2016.entrycohort 2017.entrycohort 2018.entrycohort 2019.entrycohort
            1.fipsst 2.fipsst 4.fipsst 5.fipsst 8.fipsst 9.fipsst 10.fipsst
            11.fipsst 12.fipsst 13.fipsst 15.fipsst 16.fipsst 17.fipsst
            18.fipsst 19.fipsst 20.fipsst 21.fipsst 22.fipsst 23.fipsst
            24.fipsst 25.fipsst 26.fipsst 27.fipsst 28.fipsst 29.fipsst
            30.fipsst 31.fipsst 32.fipsst 33.fipsst 34.fipsst 35.fipsst
            36.fipsst 37.fipsst 38.fipsst 39.fipsst 40.fipsst 41.fipsst
            42.fipsst 44.fipsst 45.fipsst 46.fipsst 47.fipsst 48.fipsst
            49.fipsst 50.fipsst 51.fipsst 53.fipsst 54.fipsst 55.fipsst
            56.fipsst imr_ycs dur0 c.ur_st#c.expgp0 c.ur_st#c.expgp2
            c.ur_st#c.expgp4 c.ur_st#c.expgp6 c.ur_st#c.expgp8 dur
            c.UR22_dw#c.expgp0 c.UR22_dw#c.expgp2 c.UR22_dw#c.expgp4
            c.UR22_dw#c.expgp6 c.UR22_dw#c.expgp8

.         eststo mE_2sls

.     forvalues c = 0(2)8 {
  2.       local bE_2sls_`c'=_b[c.ur0#c.expgp`c']
  3.       local seE_2sls_`c'=_se[c.ur0#c.expgp`c']
  4.     }

.     matrix results_E2sls=(0, `bE_2sls_0', `seE_2sls_0' \ ///
>                           2, `bE_2sls_2', `seE_2sls_2' \ ///
>                           4, `bE_2sls_4', `seE_2sls_4' \ ///
>                           6, `bE_2sls_6', `seE_2sls_6' \ ///
>                           8, `bE_2sls_8', `seE_2sls_8' \ 10, 0, 0)

.     matrix colnames results_E2sls=period4 beta_E2sls se_E2sls

. 
. esttab mD_ols mD_2sls mE_ols mE_2sls ///
> using `output'/`dofile'.txt, replace b se nostar drop(*.exper *.year *.entrycohort *.fipsst)
(output written to /accounts/projects/jr_ra/GRscarring/erratum/results/ivrunatc.txt)

. 
. drop _all

. matrix results=results_Dols, results_D2sls, results_Eols, results_E2sls

. svmat results, names(col)
number of observations will be reset to 6
Press any key to continue, or Break to abort
Number of observations (_N) was 0, now 6.

. foreach model in Dols D2sls Eols E2sls {
  2.   replace beta_`model'=beta_`model'*100
  3.   replace se_`model'=se_`model'*100
  4.   gen cil_`model'=beta_`model'-2*se_`model'
  5.   gen cih_`model'=beta_`model'+2*se_`model'
  6. }    
(5 real changes made)
(5 real changes made)
(5 real changes made)
(5 real changes made)
(5 real changes made)
(5 real changes made)
(5 real changes made)
(5 real changes made)

. save "`output'/`dofile'.dta", replace
file /accounts/projects/jr_ra/GRscarring/erratum/results/ivrunatc.dta saved

. gen periodA=period-0.1

. gen periodB=period+0.1

. 
. twoway rcap cil_Dols  cih_Dols  periodA || ///
>        scatter beta_Dols  periodA, msymbol(X) lstyle(p1) mstyle(p1) || ///
>        rcap cil_D2sls cih_D2sls periodB, lstyle(p2) mstyle(p2) || ///
>        scatter beta_D2sls periodB, msymbol(Th) mstyle(p2) || ///
>        , legend(order(2 4) label(2 "OLS") label(4 "IV") cols(1) ring(0) pos(5)) ///
>          title("A. Base scarring model") ///
>          xlabel(0 "22-23" 2 "24-25" 4 "26-27" 6 "28-29" 8 "30-31" 10 "32+") ///
>          yline(0, lcolor(gray)) xtitle("Age") ytitle("Effect of entry UR") ///
>          name(panelA, replace) nodraw

. twoway rcap cil_Eols  cih_Eols  periodA || ///
>        scatter beta_Eols  periodA, msymbol(X) lstyle(p1) mstyle(p1) || ///
>        rcap cil_E2sls cih_E2sls periodB, lstyle(p2) mstyle(p2) || ///
>        scatter beta_E2sls periodB, msymbol(Th) mstyle(p2) || ///
>        , legend(off) ///
>          title("B. With excess sensitivity controls") ///
>          xlabel(0 "22-23" 2 "24-25" 4 "26-27" 6 "28-29" 8 "30-31" 10 "32+") ///
>          yline(0, lcolor(gray)) xtitle("Age") ytitle("Effect of entry UR") ///
>          name(panelB, replace) nodraw

. graph combine panelA panelB, ycommon saving("`output'/`dofile'.gph", replace)
file /accounts/projects/jr_ra/GRscarring/erratum/results/ivrunatc.gph saved

.          
. if `doasproject' == 1 {
.   project, creates("`output'/`dofile'.txt")
project GRscar_erratum > do-file creates: "results/ivrunatc.txt" filesig(514663802:2319)
.   project, creates("`output'/`dofile'.gph")
project GRscar_erratum > do-file creates: "results/ivrunatc.gph" filesig(3019425341:23664)
.   project, creates("`output'/`dofile'.dta")
project GRscar_erratum > do-file creates: "results/ivrunatc.dta" filesig(3622133349:14027)
. }

. 
. 
. 
end of do-file
      name:  plog_930
       log:  /accounts/projects/jr_ra/GRscarring/erratum/programs/analysis/ivrunatc.log
  log type:  text
 closed on:  27 Nov 2024, 18:08:35
------------------------------------------------------------------------------------------------------------------------------------
